package com.dhcc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dhcc.entity.SysDepartment;
import com.dhcc.vo.SysDepartmentTree;

import java.util.List;

public interface SysDepartmentService extends IService<SysDepartment> {
    SysDepartment getDepatment(String departmentId);

    List<String> getDepartmentList(String institutionId, String institutionRoleId);

    List<SysDepartmentTree> selectDepartmentListTree(String institutionId, String institutionRoleId);

    Integer addDepartment(SysDepartment sysDepartment);

    List<SysDepartment> selectDepartmentList(String institutionId, String institutionRoleId);

    List<SysDepartment> selectdepartmentListByFatherDeptId(String departmentId);

    Integer deleteDepartment(String departmentId);

    Integer updateDepartment(SysDepartment sysDepartment);
}
